package com.wgg.common.codec.bean;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author WSH
 */
public class Person implements Serializable {
	
	private static final long serialVersionUID = -5617741068676046617L;

	public Person(String name, int age, int sex, String desc, List<String> hobby) {
		super();
		this.name = name;
		this.age = age;
		this.sex = sex;
		this.desc = desc;
		this.hobby = hobby;
	}

	public Person() {
		super();
	}

	private String name;
	
	private int age;
	
	private int sex;
	
	private String desc;
	
	public List<String> getHobby() {
		return hobby;
	}

	public void setHobby(List<String> hobby) {
		this.hobby = hobby;
	}

	private List<String> hobby = new ArrayList<String>();

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public int getSex() {
		return sex;
	}

	public void setSex(int sex) {
		this.sex = sex;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	@Override
	public String toString() {
		return "Person [name=" + name + ", age=" + age + ", sex=" + sex + ", desc=" + desc + ", hobby=" + hobby + "]";
	}

}
